<template>
	<view class="content" style="height: 100%;"
		:style="'background: url('+ c_imgPath + 'shouye/indexBg.png'+ ') repeat-y 0 0 / 100% auto;'">

		<!-- 地址 -->
		<view class="address_z">
			<image :src="c_imgPath+'mine/address.png'"></image>
			<view class="address_z_r">
				<view>
					<text style="font-size: 28rpx;font-weight: 600;">{{goods.shou_name}}</text>
					<text style="color: #999999;margin-left: 10rpx;">{{goods.shou_mobile}}</text>
				</view>
				<view style="margin-top: 20rpx;">{{goods.shou_region}}</view>
			</view>
		</view>
		<!-- 赏品 -->
		<view class="order_title_con1">
			<view class="order_pic">
				<view class="order_pic_img">
					<image :src="goods.goods_image"></image>
				</view>
				<view>
					<view style="font-size: 35rpx;">{{goods.goods_name}}</view>
					<view style="margin-top: 40rpx;">类型：{{goods.goods_spec}}</view>
					<view style="margin-top: 10rpx;">
						<text>
							单价：
							<text style="color: ;">{{goods.price}}</text>
							<text>{{'元'}}</text>
						</text>
						<text>×{{goods.goods_num}}</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 时间 -->
		<view class="dingdan">
			<view>提交时间：{{goods.pay_time}}</view>
			<view style="border: none;">订单号：{{goods.order_no}}</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				z_imgPath: this.$z_img,
				c_imgPath: 'https://qt.yhemall.com/',
				cc_imgPath: '/static/',
				goods: {},
				list: {}
			}
		},
		onLoad(e) {
			this.getData(e.id)
		},
		methods: {

			getData(e) {
				// 模拟接口
				let that = this;
				that.req({
					url: 'integral_order_detail',
					Loading: true,
					data: {
						order_no: e
					},
					success(res) {
						if (res.status == 1) {
							that.goods = res.data
						}

					}
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		height: 100%;
	}

	.list_img>view {
		position: absolute;
		bottom: 0;
		left: 0;
		background: #B07CDD;
		color: #FFFFFF;
		font-size: 24rpx;
		text-align: left;
		padding: 4rpx 10rpx;
		box-sizing: border-box;
		border-radius: 0 8rpx 0 0;
	}

	.list_img>image {
		width: 168rpx;
		height: 168rpx;
		border-radius: 10rpx 10rpx 0 0;
		margin: 1rpx auto;

	}

	.list_img {
		border-radius: 10rpx;
		box-sizing: border-box;
		width: 170rpx;
		height: 170rpx;
		position: relative;
	}

	.dingdan>view {
		border-bottom: 1px solid rgba(255, 255, 255, 0.4);
		padding: 20rpx 0;
	}

	.dingdan {
		width: 690rpx;
		margin: 20rpx auto;
		padding: 0 30rpx;
		box-sizing: border-box;
		font-size: 28rpx;
		border: 1px solid #FFFFFF;
		font-size: 24rpx;
		color: #FFFFFF;
	}

	.address_z_r {
		width: 584rpx;
		margin-left: 30rpx;
	}

	.address_z>image {
		width: 60rpx;
		height: 60rpx;
	}

	.address_z {
		width: 690rpx;
		margin: 20rpx auto;
		padding: 30rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		border: 1px solid #FFFFFF;
		font-size: 24rpx;
		color: #FFFFFF;
	}

	.xuyuan_item_2 {
		color: #FFFFFF;
		font-size: 24rpx;
		width: 100%;
		margin-top: 10rpx;
	}

	.xuyuan_item>image {
		width: 170rpx;
		height: 170rpx;
		border-radius: 10rpx 10rpx 0 0;
	}

	.xuyuan_item {
		width: 170rpx !important;
		min-width: 170rpx;
		height: 242rpx;
		border-radius: 10rpx;
		margin-right: 20rpx;
		flex-shrink: 0;
		text-align: center;
	}

	.xuyuan_con {
		display: flex;
		margin: 14rpx auto 0;
		width: 630rpx;
		box-sizing: border-box;
		overflow-x: scroll;
	}

	.xuyuan {
		width: 690rpx;
		border: 1px solid #FFFFFF;
		font-size: 24rpx;
		color: #FFFFFF;
		margin: 24rpx auto 0;
		padding-top: 24rpx;
		box-sizing: border-box;
	}

	.content {
		width: 100vw;
		min-height: 100vh;
		padding-top: 1rpx;
		box-sizing: border-box;
	}

	.order_num text {
		font-size: 32rpx;
		color: #B07CDD;
	}

	.order_num>view:nth-of-type(2) {
		font-size: 24rpx;
	}

	.order_num {
		display: flex;
		justify-content: space-between;
		border-top: 1rpx solid #333333;
		margin-top: 20rpx;
		padding: 20rpx 0;
	}

	.order_pic>view>view:nth-of-type(3) {
		display: flex;
		justify-content: space-between;
		width: 410rpx;
	}

	.order_pic>view:nth-of-type(2) {
		margin-left: 20rpx;
		font-size: 24rpx;
		color: #FFFFFF;
		padding-top: 14rpx;
		box-sizing: border-box;
	}

	.order_pic_img>image {
		width: 168rpx;
		height: 168rpx;
		border-radius: 10rpx;
	}

	.order_pic_img {
		width: 188rpx;
		height: 188rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.order_pic {
		display: flex;
	}

	.order_title_con1 {
		width: 690rpx;
		border: 1px solid #FFFFFF;
		border-radius: 17rpx;
		margin: auto;
		margin-top: 28rpx;
		padding: 20rpx 30rpx 10rpx;
		box-sizing: border-box;

		.order_coupon {
			display: flex;
			align-items: center;

			.coupon_text {
				flex: 1;
			}

			.coupon_money {
				color: #B07CDD;
			}
		}
	}
</style>